package com.woniuxy.dto;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 客户审批流程DTO
 */
@Data
public class CustomerProcessDto {
    
    private String processInstanceId;
    private String processDefinitionId;
    private String processDefinitionName;
    private String currentTaskId;
    private String currentTaskName;
    private String currentAssignee;
    private String processStatus;
    private List<ProcessStepDto> processSteps;
    private Map<String, Object> processVariables;
    
    // 流程步骤信息
    private String step;
    private String approver;
    private String approvalResult;
    private String comment;
    private LocalDateTime approvalTime;
    
    // 当前步骤和审批人信息
    private String currentStep;
    private String currentApprover;
    
    @Data
    public static class ProcessStepDto {
        private String taskId;
        private String taskName;
        private String assignee;
        private String status; // PENDING, COMPLETED, CANCELLED
        private String startTime;
        private String endTime;
        private String comment;
        private String result;
    }
}